<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<title>thymeleaf模板测试</title>
<link rel="stylesheet" th:href="@{/static/layui/css/layui.css}"></link>
<!-- <link rel="stylesheet" href="layui/css/layui.css"></link> -->
</head>
<body>
    <h1>test</h1>
    
    
    
<!--    <script th:src="@{/static/layui/layui.js}"></script> -->
   <script src="static/layui/layui.js"></script>
   <script>
		//一般直接写在一个js文件中
		layui.use(['layer', 'form'], function(){
		  var layer = layui.layer
		  ,form = layui.form;
		  
		  layer.msg('Hello World');
});
</script> 
</body>
</html>